-- GENERATED SPELL FOR [Honest Max] --


function spell0_30464(pUnit, Event) --@Loaned Gryphon Reins Force Cast,n/a--
pUnit:FullCastSpellOnTarget(60127,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30464', 544, 1)
end

function spell1_30464(pUnit, Event) --@Loaned Wind Rider Reins Force Cast,n/a--
pUnit:FullCastSpellOnTarget(60129,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30464', 619, 1)
end

function Sorts_30464(pUnit, Event)
local choix_sorts_30464 = math.random(0, 1)
if choix_sorts_30464 == 0 then
pUnit:RegisterEvent('spell0_30464', 1, 1)
end
if choix_sorts_30464 == 1 then
pUnit:RegisterEvent('spell1_30464', 1, 1)
end
end

function mob30464_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30464', math.random(1500, 3000), 1)
end

function mob30464_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30464_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30464_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30464, 1, 'mob30464_Action')
RegisterUnitEvent(30464, 2, 'mob30464_Leave')
RegisterUnitEvent(30464, 3, 'mob30464_Kill')
RegisterUnitEvent(30464, 4, 'mob30464_Die')
